#ifndef READER_H
#define READER_H

#include <QWidget>
#include <readeredit.h>
#include <datastruct.h>
#include "dboperation.h"
#include <QSqlTableModel>
#include "QMyPageWidget.h"
#include "QRoleReader.h"
#include <QSqlRecord.h>

namespace Ui {
class Reader;
}

class Reader : public QMyPageWidget
{
    Q_OBJECT

public:
    explicit Reader(QWidget *parent = 0);
    ~Reader();

    virtual void notify()
    {

    }
protected slots:
    void update_User(const User_Info &user_info);
private slots:
    void on_pushButton_Get_clicked();

private:
    Ui::Reader *ui;
    void getData();
    readerEdit *readeredit;
    User_Info user;
    DBOperation *db;
    QSqlQueryModel* model = nullptr;
};

#endif // READER_H
